package xyz.yuelai.blog.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 文章简介类。在列出文章时使用。不包含文章详情内容,只包含基本信息。
 * @author l1103
 *
 */
public class ArticleBrief implements Serializable {
	private static final long serialVersionUID = -4585972926904908965L;
	private Integer id;			//数据库表主键id,文章id
	private String title;		//文章标题
	private String summary;		//文章简介(摘要)
	private Date publishTime;	//发布时间
	private Integer readNum;	//阅读数
	private String img;			//缩略图
	private ArticleCategory articleCategory;	//文章分类
	private Integer status;	//	发布状态(1已发布,0未发布)
	

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public Date getPublishTime() {
		return publishTime;
	}

	public void setPublishTime(Date publishTime) {
		this.publishTime = publishTime;
	}

	public Integer getReadNum() {
		return readNum;
	}

	public void setReadNum(Integer readNum) {
		this.readNum = readNum;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public ArticleCategory getArticleCategory() {
		return articleCategory;
	}

	public void setArticleCategory(ArticleCategory articleCategory) {
		this.articleCategory = articleCategory;
	}

	@Override
	public String toString() {
		return "Article [id=" + id + ", title=" + title + ", articleCategory=" + articleCategory + ", summary="
				+ summary + ", publishTime=" + publishTime + ", readNum=" + readNum + ", status=" + status + ", img="
				+ img + "]";
	}

}
